/*-------------------------------- Arctic Core ------------------------------
 * Copyright (C) 2014, ArcCore AB, Sweden, www.arccore.com.
 * Contact: <contact@arccore.com>
 *
 * You may ONLY use this file:
 * 1)if you have a valid commercial ArcCore license and then in accordance with
 * the terms contained in the written license agreement between you and ArcCore,
 * or alternatively
 * 2)if you follow the terms found in GNU General Public License version 2 as
 * published by the Free Software Foundation and appearing in the file
 * LICENSE.GPL included in the packaging of this file or here
 * <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>
 *-------------------------------- Arctic Core -----------------------------*/

#if defined(USE_SPI)
#include "Dio.h"
void Spi_device_1( int active) {
#if !defined(CFG_ZYNQ) && !defined(CFG_RH850F1L)&& !defined(CFG_MPC5777C)
    if( active ) {
        Dio_WriteChannel(DioConf_DioChannel_SpiCs, STD_LOW);
    } else {
        Dio_WriteChannel(DioConf_DioChannel_SpiCs, STD_HIGH);
    }
#endif
}
#endif
